/*
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place - Suite 330, Boston, MA 02111-1307, USA.
 * 
 * http://www.gnu.org/copyleft/gpl.html
 */

package l1j.server.server.serverpackets;

/**
 * 地圖剩餘使用時間
 * 
 * @author kzk
 * 
 */
public class S_PacketBoxMap extends ServerBasePacket {

	private byte[] _byte = null;

	public S_PacketBoxMap() {
		this.writeC(S_OPCODE_PACKETBOX);
		this.writeC(159);
		this.writeD(3);
		this.writeD(1);
		this.writeS("$12125");
		this.writeD(180);
		this.writeD(2);
		this.writeS("$6081");
		this.writeD(60);
		this.writeD(3);
		this.writeS("$12126");
		this.writeD(720);
	}

	@Override
	public byte[] getContent() {
		if (this._byte == null) {
			this._byte = this.getBytes();
		}
		return this._byte;
	}

	@Override
	public String getType() {
		return new StringBuilder("[S] ").append(this.getClass().getSimpleName())
				.append("發送封包盒子(離線切換觀看入場時間").toString();
	}
}
